package com.hamizhong.iflowers.web.action;

import com.hamizhong.iflowers.utils.MyConstants;
import com.hamizhong.iflowers.web.base.MyBaseAction;
import com.hamizhong.iflowers.web.vo.UserVO;

public class DoLogoutAction extends MyBaseAction {

	@Override
	protected String doRequest() {		
		logger.info("----------------- Hello DoLoginoutAction -----------------");
		UserVO loginUserVO = (UserVO)this.getSSN().getAttribute(MyConstants.IFLOWERS_LOGIN_USER_VO);
		if(loginUserVO != null && !loginUserVO.equals("null")) {
			this.getSSN().removeAttribute(MyConstants.IFLOWERS_LOGIN_USER_VO);
			return SUCCESS;
		}else {
			return ERROR;
		}
	}

}
